# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=ldapenum
pkgver=0.1
pkgrel=11
epoch=1
pkgdesc='Enumerate domain controllers using LDAP.'
arch=('any')
url='https://gobag.googlecode.com/svn-history/r2/trunk/ldap/ldapenum/'
license=('GPL2')
depends=('perl' 'perl-ldap' 'perl-net-nslookup' 'perl-net-dns')
groups=('blackarch' 'blackarch-recon' 'blackarch-scanner')
#source=('https://gobag.googlecode.com/svn-history/r2/trunk/ldap/ldapenum/ldapenum.pl')
source=('https://projects.nth-dimension.org.uk/subversion/local/trunk/perl/ldapenum.pl')
sha512sums=('ed81822eee80c6f422e5458b7ff9fd01ae710daeb04098f2129329379ef43ab5397cc829ed5463040b8cf71a57939f9567dd7fa8a91b00a68a42a011a66b42b7')

prepare() {
  sed -i '1i\#!/usr/bin/perl' "$pkgname.pl"
}

package() {
  install -Dm 755 "$pkgname.pl" "$pkgdir/usr/bin/$pkgname"
}

